home *** CD-ROM | disk | FTP | other *** search
/ Super Screensavers Collection 2.0 / Super Screen Savers Collection.iso / W / Win Force / INST.ALL < prev    next >
Encoding:
Text File  |  1996-12-03  |  4.8 KB  |  113 lines

  1. @echo off
  2. echo off
  3. C:
  4. REM ---------------------------------
  5. REM --- Default Windows directory ---
  6. REM ---------------------------------
  7. if '%2' == '' %0 %1 C:\WINDOWS
  8.  
  9. REM --------------------------------------------------------------------------
  10. REM --- Windows directory is already specified, continue with installation ---
  11. REM --------------------------------------------------------------------------
  12. if '%3' == '~' goto CHECK
  13.  
  14. REM ---------------------------------
  15. REM --- Ask for Windows directory ---
  16. REM ---------------------------------
  17. echo.
  18. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  19. echo ║         Ready to install WinForce - the Windows application starter...      ║
  20. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  21. %1tkey * y n  "Installation will be made to %2, continue ? (Y/N)"
  22. if NOT errorlevel 2 goto CHECK
  23.  
  24. %1tkey * "80 %2" "Enter the name of your Windows directory and press [Enter]:"
  25. if errorlevel 2 goto QUIT
  26. call TSET
  27.  
  28. if '%TSTR%' == '' %0 %1 %2 ~
  29. %0 %1 %TSTR% ~
  30.  
  31. :CHECK
  32. if exist %2\WIN.COM goto INST
  33. REM -----------------------------------------
  34. REM --- Any regrets before installation ? ---
  35. REM -----------------------------------------
  36. echo.
  37. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  38. echo ║     Check that destination directory below is correct, otherwise abort      ║
  39. echo ║ installation, and start it again with your Windows directory as an argument:║
  40. echo ║              Example:        A:\INSTALL C:\WINDOWS                          ║
  41. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  42. echo.
  43. %1tkey *  n y "Installation will be made to %2, continue ? (Y/N)"
  44. if NOT errorlevel 3 goto QUIT
  45.  
  46. :INST
  47. REM --------------------
  48. REM --- Installation ---
  49. REM --------------------
  50. echo.
  51. %1tkey * o u  "(U)pdate files (recommended) or (O)verwrite ? (U/O)"
  52. if errorlevel 3 goto END
  53. if errorlevel 2 goto UPDATE
  54.  
  55. %1deliv -d -o %2
  56. goto CONT
  57.  
  58. :UPDATE
  59. %1deliv -d -n -o %2
  60.  
  61. :CONT
  62. echo.
  63. %1tkey * "Press any key..."
  64.  
  65. REM ----------------------------------------------------------------------
  66. REM --- Information about creating a program object and uninstallation ---
  67. REM ----------------------------------------------------------------------
  68. echo.
  69. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  70. echo ║                       Installation completed.                               ║
  71. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  72. echo.
  73. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  74. echo ║                      ╔═══════════════════════╗                              ║
  75. echo ║                      ║ Now do the following: ║                              ║
  76. echo ║                      ╚═══════════════════════╝                              ║
  77. echo ║                                                                             ║
  78. echo ║ 1) Start WinForce using File Run in Windows ProgramManager/Explorer         ║
  79. echo ║ 2) When starting WinForce the 1st time, you will be prompted to add the     ║
  80. echo ║    WinForce ProgramGroup/Folder to Windows ProgramManager/Explorer.         ║
  81. echo ║    Answer Yes.                                                              ║
  82. echo ║ 3) Inspect the WinForce ProgramGroup/Folder, the template Script file       ║
  83. echo ║    WinForce.WSF and read the online F1 help.                                ║
  84. echo ║                                                                             ║
  85. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  86. echo.
  87. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  88. echo ║When running WinForce in menu mode, complete help is available using F1 key. ║
  89. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  90. echo.
  91. %1tkey * "Press any key..."
  92. goto END
  93.  
  94. REM --------------------------------
  95. REM --- Installation interrupted ---
  96. REM --------------------------------
  97. :QUIT
  98. echo.
  99. %1tkey * "Installation interrupted, press any key..."
  100.  
  101. :END
  102. echo.
  103. echo ╔═════════════════════════════════════════════════════════════════════════════╗
  104. echo ║                   To uninstall WinForce (NOT recommended):                  ║
  105. echo ║ Delete from your Windows directory the files WinForce.EXE, .INI and .INF ,  ║
  106. echo ║     Script file WinForce.WSF and other WinForce Script and debug files.     ║
  107. echo ║Also remove WinForce ProgramGroup/Folder from Windows ProgramManager/Explorer║
  108. echo ╚═════════════════════════════════════════════════════════════════════════════╝
  109. echo.
  110. %1tkey * "Press any key..."
  111. if exist TSET.BAT del TSET.BAT
  112. EXIT
  113.